package com.hoko.blur.task;

import ohos.agp.components.Component;
import ohos.media.image.PixelMap;

import com.hoko.blur.api.IBlurProcessor;
import com.hoko.blur.api.IBlurResultDispatcher;

public class ViewAsyncBlurTask extends AsyncBlurTask<Component> {
    public ViewAsyncBlurTask(IBlurProcessor processor, Component target, Callback callback, IBlurResultDispatcher dispatcher) {
        super(processor, target, callback, dispatcher);
    }

    @Override
    protected PixelMap makeBlur(Component target) {
        return mProcessor.blur(target);
    }
}
